#include <stdio.h>

#include "gd32f3x0.h"
#include "systick.h"
#include "main.h"

#include "gd32f310_bsp_gpio.h"
#include "gd32f310_bsp_adc.h"
#include "gd32f310_bsp_i2c.h"

#include "display_oled.h"

int main(void)
{
    systick_config();
    bsp_gpio_init();

    delay_1ms(1000);

    display_oled_init();
    bsp_adc_init();

    while (1)
    {
        u8g2_loop();
        delay_1ms(10);
        
        // gpio_bit_write(GPIOB, GPIO_PIN_1, RESET);
        // delay_1ms(20);
        // gpio_bit_write(GPIOB, GPIO_PIN_1, SET);
    }
}
